<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    td{
        border: 1px black solid;
    }
</style>
<body>
<h1>班级管理</h1>
<hr>
<button><a th:href = "@{/adm/clz/go2Add}">添加一个新的班级</a></button>
<hr>
<table style="border: 1px black solid">
    <tr th:each="clz:${clzAll}">
        <td th:text="${clz.clzno}"></td>
        <td th:utext="${clz.clzname}"></td>
        <td><a th:href="@{'/adm/clz/update?clzno='+ ${clz.clzno}} +'&clzname=' + ${clz.clzname}">修改班级名称</a></td>
        <td><a th:href="'/adm/clz/delete/'+${clz.clzno}">删除该班级</a> </td>    </tr>
</table>

<p>
<a th:if="${curPage-1} ge 1"  th:href="@{'/adm/clz/prevPage?curPage='+ ${curPage-1}}">上一页</a>
<a th:if="${curPage-1} lt 1"  th:href="@{'/adm/clz/prevPage?curPage=1'}">上一页</a>

<span th:text="${curPage} +'/'+${totalPage}"/>

<a th:if="${curPage+1} le ${totalPage}" th:href="@{'/adm/clz/prevPage?curPage='+ ${curPage+1}}">下一页</a>
<a th:if="${curPage+1} gt ${totalPage}"  th:href="@{'/adm/clz/prevPage?curPage=' + ${totalPage}}">下一页</a>
</p>
</body>
</html>